//function plusReady(){
//	
//}
//
//document.addEventListener("plusready",plusReady,false);
//// Get storage item length
//function kset(key, value){
//  plus.storage.setItem(key, value);  
//}
//
//function kget(key){    
//  return plus.storage.getItem(key);  
//}
//
//function kremove(key){  
//  plus.storage.removeItem(key);  
//}
//
//function kclear(){  
//  plus.storage.clear();  
//}
//
////测试更新方法  
//function kupdate(key,value){  
//  plus.storage.removeItem(key);  
//  plus.storage.setItem(key, value);  
//}

function lset(key, value){
    window.localStorage.setItem(key, value);  
}
  
function lget(key){    
    return window.localStorage.getItem(key);
}
  
function lremove(key){  
    window.localStorage.removeItem(key);  
}
  
function lclear(){  
    window.localStorage.clear();  
}

//测试更新方法  
function lupdate(key,value){  
    window.localStorage.removeItem(key);  
    window.localStorage.setItem(key, value);  
}

function kset(key, value){
    window.sessionStorage.setItem(key, value);  
}

function kget(key){
    return window.sessionStorage.getItem(key);  
}

function kremove(key){  
    window.sessionStorage.removeItem(key);  
}  

function kclear(){  
    window.sessionStorage.clear();  
}  

//测试更新方法  
function kupdate(key,value){  
    window.sessionStorage.removeItem(key);  
    window.sessionStorage.setItem(key, value);  
} 

